package com.timerecording.service.LoginLog;

import com.timerecording.service.LoginLog.domain.LoginLogEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**  登录日志
 * @author smz41
 * @description: TODO
 * @date 2025/1/27
 */

@Service
@Slf4j
public class LoginLogService {



    @Resource
    private LoginLogDao loginLogDao;


    /**  添加
     * @description: TODO
     * @author smz
     * @version 1.0
     * @date 2025/1/27
     */

    public void log(LoginLogEntity loginLogEntity) {
        try {
            loginLogDao.insert(loginLogEntity);
        } catch (Throwable e) {
            log.error(e.getMessage(), e);
        }
    }
}
